<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>2.关于对象</title>
	</head>
	<body>
		<script type="text/javascript" >
			let a = 'name'

			let person = {
				name:'张三',
				age:18,
			}

			console.log(person[a])
		</script>
	</body>
</html>